package Iterator;

/**
 * @Author zhangjinxi
 * @Date: Created in 17:25 2018/3/1
 * @Description:
 */
public class IteratorTest {

    public static void main(String[] args) {
        Collection collection = new MyCollection();

        Iterator iterator = collection.iterator();

        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }

}
